﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="FileFolder.aspx.cs" Inherits="admin_Settings_FileFolder" %>
<%@ Register TagName="TabMenu" TagPrefix="menu" Src="~/admin/Setting/Menu.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<div class="content-box-outer">
		<div class="content-box-right">
			<menu:TabMenu ID="TabMenu" runat="server" />
		</div>
		<div class="content-box-left">
            <h1>File & Thư mục</h1>

                <ul class="fl leftaligned">
                    <li>
                        <label class="lbl">Thư mục gốc</label>
                       
                          <input type="text" class="w300" value="<%=Setting.String("FILE_ROOTFOLDER") %>" style="width: 300px" id="txtRootFolder" onblur="$.dalatcooking.jsonSettingUpdate('FILE_ROOTFOLDER', this.value);" />

                    </li>
                     <li>
                        <label class="lbl" >Tài liệu</label>
                          <input type="text" class="w300" value="<%=Setting.String("FILE_FILEFOLDER") %>" style="width: 300px" id="txtFileFolder" onblur="$.dalatcooking.jsonSettingUpdate('FILE_FILEFOLDER', this.value);" />

                        <span class="belowHelp">Thư mục chứa tài liệu</span>
                    </li>
                    <li>
                        <label class="lbl">Hình ảnh</label>


                            <input type="text" class="w300" value="<%=Setting.String("FILE_IMAGEFOLDER") %>" style="width: 300px" id="txtImageFolder" onblur="$.dalatcooking.jsonSettingUpdate('FILE_IMAGEFOLDER', this.value);" />

                        <span class="belowHelp">Thư mục chứa hình ảnh</span>
                    </li>
                    <li>
                        <label class="lbl" >Videos</label>
          

                             <input type="text" class="w300" value="<%=Setting.String("FILE_VIDEOFOLDER") %>" style="width: 300px" id="txtVideoFolder" onblur="$.dalatcooking.jsonSettingUpdate('FILE_VIDEOFOLDER', this.value);" />

                        <span class="belowHelp">Thư mục chứa videos</span>
                    </li>
                    <li>
                        <label class="lbl" >Mp3</label>
                        <input type="text" class="w300" value="<%=Setting.String("FILE_MP3FOLDER") %>" style="width: 300px" id="txtMp3Folder" onblur="$.dalatcooking.jsonSettingUpdate('FILE_MP3FOLDER', this.value);" />

                        <span class="belowHelp">Thư mục chứa MP3</span>
                    </li>
                     <li>
                        <label class="lbl" >Flash</label>
                          <input type="text" class="w300" value="<%=Setting.String("FILE_FLASHFOLDER") %>" style="width: 300px" id="txtFlashFolder" onblur="$.dalatcooking.jsonSettingUpdate('FILE_FLASHFOLDER', this.value);" />

                        <span class="belowHelp">Thư mục chứa flash</span>
                    </li>
                   
                </ul>
                 <h1>Cấu hình upload</h1>

                <ul class="fl leftaligned">
                  
                     <li>
                        <label class="lbl">Tài liệu cho phép</label>
                      <input type="text" class="w300" value="<%=Setting.String("FILE_ALLOW_FILEEXT") %>" style="width: 300px" id="txtFileExt" onblur="$.dalatcooking.jsonSettingUpdate('FILE_ALLOW_FILEEXT', this.value);" />

                        <span class="belowHelp">Các định dạng tài liệu hợp lệ</span>
                    </li>
                    <li>
                        <label class="lbl">Hình ảnh cho phép</label>
                         <input type="text" class="w300" value="<%=Setting.String("FILE_ALLOW_IMAGEEXT") %>" style="width: 300px" id="txtImageExt" onblur="$.dalatcooking.jsonSettingUpdate('FILE_ALLOW_IMAGEEXT', this.value);" />

                        <span class="belowHelp">Các định dạng hình ảnh hợp lệ</span>
                    </li>
                    <li>
                        <label class="lbl">Videos</label>
                        <input type="text" class="w300" value="<%=Setting.String("FILE_ALLOW_VIDEOEXT") %>" style="width: 300px" id="txtVideoExt" onblur="$.dalatcooking.jsonSettingUpdate('FILE_ALLOW_VIDEOEXT', this.value);" />

                        <span class="belowHelp">Các định dạng videos hợp lệ</span>
                    </li>
                    <li>
                        <label class="lbl" >Mp3</label>
                        <input type="text" class="w300" value="<%=Setting.String("FILE_ALLOW_MP3EXT") %>" style="width: 300px" id="txtMp3Ext" onblur="$.dalatcooking.jsonSettingUpdate('FILE_ALLOW_MP3EXT', this.value);" />

                        <span class="belowHelp">Các định dạng âm thanh hợp lệ</span>
                    </li>
                         <li>
                        <label class="lbl" >Kích thước file tối đa</label>
                         <input type="text" class="w300" value="<%=Setting.String("FILE_MAXSIZE") %>" style="width: 60px" id="txtFileSize" onblur="$.dalatcooking.jsonSettingUpdate('FILE_MAXSIZE', this.value);" />
 MB
                        <span class="belowHelp">Kích thước file tối đa cho phép</span>
                    </li>

                    <li>
                        <label class="lbl">Kích thước hình ảnh</label>
                       <input type="text" class="w300" value="<%=Setting.String("IMAGE_WIDTH") %>" style="width: 60px" id="txtImageWidth" onblur="$.dalatcooking.jsonSettingUpdate('IMAGE_WIDTH', this.value);" />

                        X 
                         <input type="text" class="w300" value="<%=Setting.String("IMAGE_HEIGHT") %>" style="width: 60px" id="txtImageHeight" onblur="$.dalatcooking.jsonSettingUpdate('IMAGE_HEIGHT', this.value);" />

                        <span class="belowHelp">Kích thước hình ảnh (Mặc định 640 x 480)</span>
                    </li>

                    <li>
                        <label class="lbl"> Cài đặt khác</label>
                        <asp:CheckBox runat="server" ID="cbAllowOverWrite" onclick="$.dalatcooking.jsonSettingUpdate('FILE_ALLOW_OVERWRITE', this.checked);" />
                        <label for="<%=cbAllowOverWrite.ClientID %>">Cho phép ghi đè file gốc</label>
                    </li>
                     <li>
                         <label class="lbl">&nbsp;</label>
                        <asp:CheckBox runat="server" ID="cbAllowUniqueFileName" onclick="$.dalatcooking.jsonSettingUpdate('FILE_ALLOW_UNIQUENAME', this.checked);" />
                        <label for="<%=cbAllowUniqueFileName.ClientID %>">Cho phép đặt tên file là duy nhất</label>
                    </li>
                      <li>
                         <label class="lbl">&nbsp;</label>
                        <asp:CheckBox runat="server" ID="cbAllowGenerateDateFolder" onclick="$.dalatcooking.jsonSettingUpdate('FILE_ALLOW_DATEFOLDER', this.checked);" />
                        <label for="<%=cbAllowGenerateDateFolder.ClientID %>">Cho phép tạo thư mục theo ngày tháng</label>
                    </li>
                     <li>
                         <label class="lbl">&nbsp;</label>
                        <asp:CheckBox runat="server" ID="cbAllowAddTextToImage" onclick="$.dalatcooking.jsonSettingUpdate('IMAGE_ALLOW_ADDTEXT', this.checked);" />
                        <label for="<%=cbAllowAddTextToImage.ClientID %>">Đánh dấu bản quyền lên hình ảnh</label>
                    </li>
                    <li>
                    <label class="lbl"></label>
                    <asp:CheckBox ID="cbAllowResizeImage" runat="server" onclick="$.dalatcooking.jsonSettingUpdate('IMAGE_ALLOW_RESIZE', this.checked);" />
                    <label>Thay đổi kích thước file ảnh</label>
                    </li>
                </ul>
            <div class="action_buttons">
                <input type="submit" id="btnSave" class="btn primary" value="Lưu" onclick="return SaveFileFolderSettings();"/>
                <img class="loader2" src="/admin/images/ajax-loader1.gif" alt="loader" />
            </div>             
       </div>
    </div>
</asp:Content>



